package me.shiqiang.im.domain;

import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by John on 2018/1/12
 */
@RedisHash
public class UserGroups {
    @Id
    private Long userId;    //用户ID

    private Map<Long,GroupProperties> groups = new HashMap<>();    //群<id,群属性(eg.群名、群类型)>

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Map<Long, GroupProperties> getGroups() {
        return groups;
    }

    public void setGroups(Map<Long, GroupProperties> groups) {
        this.groups = groups;
    }
}
